<script>
	// 导入highlight.js样式
	// import 'highlight.js/styles/default.css'
	
	export default {
		onLaunch: function() {
			console.log('App Launch');
			// 确保启动到首页
			const pages = getCurrentPages();
			if (pages.length === 0 || pages[0].route !== 'pages/index/index') {
				uni.reLaunch({
					url: '/pages/index/index'
				});
			}
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	/* @import url('./static/fonts/iconfont.css'); */
	@import url('https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css');
</style>
